<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>睡眠系统登录</title>
        <link rel="stylesheet" th:href="@{/css/bootstrap.css}">
<!--    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"/>-->
    <!--    <script th:src="@{/js/jquery2.1.4.js}"/>-->
</head>

<body class="container">
<br/><br/>
<!--<a href="/admin/login">-->
<!--    <button>管理员登录</button>-->
<!--</a>-->
<!--<a href="/user/login">-->
<!--    <button >用户登录</button>-->
<!--</a>-->
<div style="width:400px; height: 500px; margin: 70px auto;background-color: pink">
    <div style="height: 300px; width: 300px; line-height: 300px; text-align: center;
    font-size: 40px; margin: 20px auto ; background-color: #faf2cc">
<!--<div>-->
<!--    <div>-->
        用户登录
    </div>
        <form style="width: 90%" class="form-horizontal">
            <div class="form-group">
                <label for="username" class="col-sm-2 control-label">账户</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="username" id="username" placeholder="请输入账户名"/>
                </div>
            </div>
            <div class="form-group">
                <label for="password" class="col-sm-2 control-label">密码</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control" name="password" id="password" placeholder="请输入密码"/>
                </div>
            </div>
            <div class="form-group" style="text-align: center; margin-top: 30px">
                <!--            <a href="/admin/login" style="line-height: 100%">-->
                <input type="button" id="adminLogin" style="width:100px" class="btn btn-info" th:value="登录"></input>
                <!--            </a>-->
                <!--            <a href="/user/login" style="line-height: 100%">-->
                <input type="button" id="userLogin" style="width:100px" class="btn btn-info" th:value="注册"></input>
                <!--            </a>-->
                <input type="button" id="reset" value="重置" style="width:100px" class="btn btn-info"/>
            </div>
        </form>
</div>

<!--<script>-->
<!--    $(function (){-->
<!--        let username = $("#username").val();-->
<!--        let password = $("#password").val();-->
<!--        $("#adminLogin").click(function () {-->
<!--            $(location).href("href", "/admin/login?username="+username+"&password="+password)-->
<!--        });-->

<!--        $("#userLogin").click(function () {-->
<!--            $(location).href("href", "/user/login?username="+username+"&password="+password)-->
<!--        });-->
<!--    });-->
<!--</script>-->
</body>
</html>